// plugins/element-icons.ts
// import { defineNuxtPlugin } from '#app';
// import * as ElementPlusIconsVue from '@element-plus/icons-vue';

// export default defineNuxtPlugin((nuxtApp) => {
//   // 注册所有的图标到全局
//   for (const [key, component] of Object.entries(ElementPlusIconsVue)) {
//     nuxtApp.vueApp.component(key, component);
//   }
// });

import { defineNuxtPlugin } from "#app";
import * as ElementPlusIconsVue from "@element-plus/icons-vue";

export default defineNuxtPlugin((nuxtApp) => {
  // 注册所有的图标到全局
  for (const [key, component] of Object.entries(ElementPlusIconsVue)) {
    nuxtApp.vueApp.component(key, component);
  }
});
